package land;

import Vo.House;
import Vo.Store;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import page.PageBean;
import util.JsonResult;

import java.util.HashMap;
import java.util.List;

@FeignClient
@LoadBalancerClient
public interface RentHouseInterface {

    @RequestMapping("/house/getAll")
    List<House> queryAll(@RequestBody PageBean pageBean);

    @RequestMapping("/house/queryById")
    boolean queryByStroeId(@RequestBody House house);

    @RequestMapping("/house/insertStore")
    boolean addStore(@RequestBody House house);

    @RequestMapping("/house/deleteById")
    boolean deleteById(@RequestBody House house);

    @RequestMapping("/house/getByname")
    public JsonResult<List<House>> getByName(String name);
}
